import { http } from '@/utils/request'

export const getUserListApi = () => {
    return http.get('/adminapi/use/list')
}

export const userAddApi = (data: FormData) => {
    return http.post('/adminapi/user/add', data, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}
export const editUserApi = (data: FormData) => {
    return http.post('/adminapi/user/edit', data, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}

export const userDeleteApi = (data: number) => {
    return http.delete(`/adminapi/user/list/${data}`)
}